﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JLL.China.Infrastructure.Repositories.Pages;
using JLL.China.Infrastructure.RepositoryFramework;
using JLL.China.Infrastructure.Repositories;

namespace JLL.China.Infrastructure.Services
{
    public static  class PagesService
    {
         private static PagesRepository repository;

        static PagesService()
        {
            repository = RepositoryFactory.GetRepository<PagesRepository, Model.Pages, int>(new LINQ2SQLUnitOfWork<int>());
        }
        public static string FindPages(int id)
        {
            return repository.FindById(id);
        }
        public static IList<Model.Pages>FindAll()
        {
            return repository.FindAll();
        }
        public static decimal UpdateListBanner(int id,string list)
        {
            return repository.UpdateListBanner(id,list);
        }

    }
}
